<template>
  <div class="auto">
    <div class="col-sm-12">
      <div class="col-sm-4"></div>
      <span>安检人员入户着全套工作服及佩戴工作牌--------------------------{{user[0].identitycard === 0 ? '否' : (user[0].identitycard === 1 ? '是' : '')}}</span>
    </div><br/><br/>
    <div class="col-sm-12">
      <div class="col-sm-4"></div>
      <span>安检人员向用户解释检查结果--------------------------{{user[0].result === 0 ? '否' : (user[0].result === 1 ? '是' : '')}}</span>
    </div><br/><br/>
    <div class="col-sm-12">
      <div class="col-sm-4"></div>
      <span>安检人员服务态度--------------------------{{user[0].attitude === 0 ? '否' : (user[0].attitude === 1 ? '是' : '')}}</span>
    </div><br/><br/>
    <div class="col-sm-12">
      <div class="col-sm-4"></div>
      <span>安检人员工作内容及质量--------------------------{{user[0].quality === 0 ? '否' :(user[0].quality === 1 ? '是' : '')}}</span>
    </div><br/><br/>
    <div class="col-sm-12">
      <label  class=" col-sm-4 control-label" >------其他说明------</label>
    </div><br/><br/>
    <div class="col-sm-12">
      <div class="col-sm-4"></div>
      <span>经检查，贵户燃气设施一切正常，用户确认--------------------------{{user[0].Normalfacilities === 0 ? '否' : (user[0].Normalfacilities === 1 ? '是' : '')}}</span>
    </div><br/><br/>
    <div class="col-sm-12">
      <div class="col-sm-4"></div>
      <span>故障暂时不能排查，已关闭阀门，请用户拨打维修热线电话进行保修--------------------------{{user[0].trouble === 0 ? '否' : (user[0].trouble === 1 ? '是' : '')}}</span>
    </div><br/><br/>
    <div class="col-sm-12">
      <div class="col-sm-4"></div>
      <span>贵户灶具，热水器，壁挂炉，已过使用期限，但暂不更换--------------------------{{user[0].replace === 0 ? '否' : (user[0].replace === 1 ? '是' : '')}}</span>
    </div><br/><br/>
    <div class="col-sm-12">
      <div class="col-sm-10"></div>
      <button class="btn btn-primary width-80" @click="$back()" v-el:cx>返回</button>
    </div>
  </div>
</template>

<script>
import co from 'co'
import { PagedList } from 'vue-client'
import * as Util from '../Util'
let checkplan = function * (self) {
  let condition = `f_userid=${self.data.f_userid} and f_checkid=${self.data.id}`
 yield self.$post('rs/sql/singleTable_OrderBy', {data:{items:'*',tablename:'t_aboutuser',
  condition:condition,orderitem:'f_userid'}},
   {resolveMsg: null, rejectMsg: null})
  .then ((res)=> {
    self.user = res.data
  })
  .catch ((res)=> {
    self.$showMessage('获取用户数据失败，请查看你输入的查询信息')
  })
}
export default {
  title: '用户意见',
  data () {
    return {
      user:[]
    }
  },
  props: ['data'],
  ready () {
    let gen = checkplan(this)
    co(gen)
  },
  methods: {
    search () {

    },
  }
}
</script>
<style media="screen">
  .divtext {
    min-width: 50px;
    max-width: 200px;
    border: 1px solid green;
    display: inline-block;
  }
</style>
